package zoo;
import menber1.Tiger;
import menber2.Canel;
import menber3.Dog;
import member4.Cow;
import han.Horse;
import java.util.Scanner;
import pluto.Pig;
import han.Horse;


public class Zoo {
    public static void main(String[] args) {
        String[] animal={"老虎","骆驼","哈士奇","马","猪","牛"};
        Scanner sc=new Scanner(System.in);
        String animalName;
        int i,num;
        System.out.print("动物园有以下动物:");
        for(i=0;i<animal.length;i++){
            System.out.print(animal[i]+"  ");
        }
        do {
            System.out.println("请输入想了解的动物:");
            animalName=sc.next();
            switch(animalName)
            {
                case "老虎":
                {
                    Tiger tiger=new Tiger();
                    tiger.show();
                }
                break;
                case "骆驼":
                {
                    Canel canel=new Canel();
                    canel.show();
                }
                break;
                case "哈士奇":
                {
                    Dog dog=new Dog();
                    dog.show();
                }
                break;
                case "马": {
                    Horse horse = new Horse();
                    horse.show();
                }
                break;
                case "猪":
                {
                    Pig pig=new Pig() ;
                    pig.show() ;
                }
                    break;
                case "牛":
                {
                    Cow cow=new Cow();
                    cow.show();
                    break;
                }
                default:
                {
                    System.out.println("动物园无此动物");
                }
                    break;
            }
            System.out.print("是否继续查看动物(1.是，0.否):");
            num=sc.nextInt();
        }while(num!=0);
        System.out.println("谢谢游玩动物园!");
    }
}
